﻿using System;

namespace Merge合并区间
{
    public class Solution
    {
        public int[][] Merge(int[][] intervals)
        {
            int[][] newIntervals = new int[intervals.Length][];


            for (int i = 0; i < intervals.Length; i++)
            {
                var items = intervals[i];

                int a = items[0];
                int b = items[1];








            }


            return newIntervals;
        }
    }

    class Program
    {
        static void Main(string[] args)
        {
            int[][] intervals = {
                new int[] {1, 3},
                new int[] {2, 6},
                new int[] {8, 10},
                new int[] {15, 18}
            };


            new Solution().Merge(intervals);

            Console.WriteLine("Hello World!");
        }
    }
}
